lcImageLoad Home

Loads an image from a file.

 BOOL lcImageLoad (
   HANDLE hImage,
   LPCWSTR szFilename,
   HANDLE hWnd
 );

Parameters
hImage
  Handle to a raster image object.
szFilename
  Filename of raster image. If NULL or empty string, then "Open File" dialog will be called, where user can select an image file.
hWnd
  Handle to parent window for the "Open File" dialog.
Can be HWND or handle to LiteCAD graphics window. If NULL is specified then active window will be used as the parent.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).